﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.Expressions
{
    [Serializable]
    public class TableExpression
    {
        private string tableName;

        #region Constructor
        public TableExpression(string tableName)
        {
            this.tableName = tableName;
        }
        #endregion

        public override string ToString()
        {
            return this.tableName;
        }

        #region type 转换
        public static explicit operator string(TableExpression value)
        {
            return value.tableName;
        }

        public static implicit operator TableExpression(string value)
        {
            return new TableExpression(value);
        }
        #endregion
    }
}
